﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class CTDHBUS
    {
    
        public int kiemtrathuoc(int maDH, int maSP)
        {
            CTDHDAO dao = new CTDHDAO();
            return dao.kiemtrathuoc(maDH, maSP);
        }

        public List<CTDatHangDTO> LayDSCTDatHang(int maDH)
        {
            CTDHDAO dao = new CTDHDAO();
            return dao.LayDSCTDatHang(maDH);
        }

        public void CapNhatSoLuongConLai(int maDH, int maSP, int SL)
        {
            CTDHDAO dao = new CTDHDAO();
            dao.CapNhatSoLuongConLai(maDH, maSP, SL);
        }

        public int LaySoLuongConLai(int maDH, int maSP)
        {
            CTDHDAO dao = new CTDHDAO();
            return dao.LaySoLuongConLai(maDH, maSP);
        }
    }
}
